Dundee achieved an unwanted hat-trick with this dramatic defeat to Queen of the South being their third in a row.
The Dark Blues looked to have salvaged a stoppage time point when substitute Danny Johnson scored a fine equaliser but seconds later Stephen Dobbie earned the visitors the victory with his second of the afternoon.
Catching Dundee United was the aim a couple of weeks ago but, such has been the downturn since they lost the derby, the Dens Park side will now have to make staying in the play-off places the priority.
James McPake made four changes to his team, with Jack Hamilton back in goals and Cammy Kerr, Finlay Robertson and Josh Todd also selected.
Dundee started well but the old problem of no end product was still there and, after Queens got a foothold in the contest, they took the lead through a long-range Dobbie strike just before the half-hour.
By that point Hamilton had already denied the Palmerston talisman with a reflex save.
It nearly got even worse at the start of the second half when Sean Mackie and Jordan McGhee left a bouncing ball for each other. Connor Murray took advantage and his lob just dipped the high side of the cross bar.
Dundee were unlucky not to be level on 57 minutes when a Kane Hemmings shot looked to have beaten Robbie McCrorie before the keeper gathered just in time.
Three minutes into added time Johnson fired home from the edge of the box but Dobbie had the last word straight from the re-start with a lovely chipped finish.