Harrogate Town dropped down to seventh in Vanarama National North after giving up a first half lead to lose 2-1 at Gainsborough Trinity.
Peter Crook's late error of judgement handed the 12th-placed hosts victory as Darryn Stamp headed home in the 80th minute.
The goalkeeper failed to deal with a long punt over the top and Stamp capitalised to head home on the edge of the box.
Jack Emmett had put Town ahead early in the first half before Nathan Jarman levelled after the break.
Simon Weaver was forced to change his back-line following the injury to Luke Shiels in the 1-0 FA Trophy exit last week, as he brought young centre-back Harry Coates back from a loan spell at Matlock Town to partner club captain Dave McGurk.
On his return to the Town starting line-up, Emmett put Town in front after just six minutes as he slid home a quick counter attack.
Both teams created a series of chances in an entertaining first half an hour, with Nathan Jarman and Brendon Daniels finding the roof of the net at either end.
Gainsborough were denied an equaliser following an almighty goalmouth scramble, with Simon Russell twice blocked on the line.
In response, Lloyd Kerry saw an effort saved from 18 yards for Town before Daniels struck the post and Dominic Knowles fired the corresponding effort over.
Trinity had the wind behind their back in the second half and equalised two minutes before the hour mark after winning an aerial duel at the far post.
A quiet spell followed but Trinity stole the points in the 80th minute when Stamp capitalised on Crook's error to nod in Jan Budtz's long kick forward.
Substitute Jordan Thewlis had a late chance to salvage a point for Town but Budtz denied his effort at the near post.
Meanwhile, Harrogate Railway's trip to Bamber Bridge in Evo-Stik First Division North was postponed due to a waterlogged pitch.
Tadcaster Albion's match at Staveley Miners Welfare also fell to the weather in the Northern Counties East League Premier DIvision.