British number one Johanna Konta came from behind to beat 11th seed Jelena Ostapenko in the first round of the Rogers Cup in Montreal.
Konta, currently ranked 43rd in the world after starting the year in ninth, prevailed 6-7 6-1 6-2.
She was pegged back from a 3-0 lead in the opening set and lost a tie-break 8-6 to the 2017 French Open champion.
But the unseeded 27-year-old dropped only three more games as she took the next two sets in 68 minutes.
She will face the winner of the match between Victoria Azarenka and Kristina Mladenovic in the last 32.