Got a slight overlap out of T4 on the inside of Rui, so I hoped to go around the outside at T5. The overlap went and Rui moved to the right and the gap disappeared, so I attempted to cut back to the left in case he braked early as I didn't wan't to run into him. I thought I had time to do this, as we hadn't yet passed the mast on the left, but Rui braked before I had got to his side and we hit.