Rangers ensured they did not suffer the ignominy of losing four matches on the bounce for the first time in 30 years as they grabbed a 2-1 Scottish Championship win over Raith Rovers in Kirkcaldy.
Andrew Murdoch put the Ibrox men ahead 10 minutes from half-time before Kris Boyd found the net for the first time since November just after the break.
Ryan Conroy gave Rovers a lifeline with 20 minutes left but Rangers saw out their first win since January 10.
The Fife side had stunned the Ibrox men when they knocked them out of the William Hill Scottish Cup at Ibrox just a fortnight ago.
That devastating loss was sandwiched in between the Scottish League Cup semi-final defeat to Celtic and last Friday's 2-0 Championship slip-up at home to Hibernian.
But Gers spared themselves further agony as Murdoch, making just his fourth appearance, netted his first goal for the club.
Boyd also regained his scoring touch after three months of misery in front of goal.
The win sees Rangers retake second place from the Leith side while trimming Hearts' lead at the top to 19 points having played two games less, although both Edinburgh clubs are in action on Saturday.