Janko Tipsarevic survived a big scare before booking his place in the quarter-finals of the Swiss Open.
The top seeded Serbian looked in danger of an early exit on his Gstaad debut after going down a set and a break against world number 245 Martin Fischer.
And despite taking the second set on a tie-break, Tipsarevic dropped serve in the decider but drew level immediately after before breaking for the lead and closing out the match 4-6 7-6 (7/1) 6-3.
Next up for Tipsarevic is world number 212 Jan Hernych, who reached the last eight of a competition for the first time since 2009 with an upset 6-3 2-6 6-4 triumph over seventh seed Santiago Giraldo, saving 15 of 19 break points in the process.
Second seed and reigning champion Marcel Granollers was sent packing 6-4 6-2 in one hour and 37 minutes by Poland's Lukasz Kubot, who will face Grigor Dimitrov after the Bulgarian
beat German qualifier Dustin Brown 7-6 (7/3) 3-6 6-2.