Third Division Berwick earned a replay with Stenhousemuir after a 1-1 draw.
Berwick took the lead through Lee Currie's superb free-kick. After Ross Gray was impeded by Sean Dickson, Currie fired a left-footed effort into the top corner of Robbie Thomson's goal.
The visitors had chances to score a second but Andrew McLean and Ross Gray were denied by Thomson, while Darren Lavery and Stuart Noble both fired wide.
Thomson made a superb save as Currie fired in another free-kick in the 55th minute.
But the Second Division side equalised with 12 minutes left as Stewart Kean netted his seventh goal of the season from close range.
Stenhousemuir ended the game with 10 men as Kevin McKinlay was sent off in the 83rd minute for two bookable offences.