Queen of the South were denied victory by a late Dundee goal at Palmerston Park.
Steven Milne's long-range effort flew over the Queens crossbar during the first half.
Sam Parkin put the hosts ahead just before the break with a neatly converted strike from Nicky Clark's cross.
Queens looked to be heading for all three points until Jake Hyde headed into the path of Matthew Lockwood, who lashed into the net in the 89th minute.
Queen of South:
Robinson, McGuffie, Craig Reid, Potter, Alan Reid, Carmichael, Johnston (Reilly 73), Simmons (McKenna 66), McLaughlin, Parkin, Clark. Subs Not Used: Atkinson, Brighton, Higgins.
Douglas, Irvine, McGregor (Chisholm 66), McKeown, Lockwood, McCluskey (Riley 76), Weston (Benedictis 80), O'Donnell, Conroy, Hyde, Milne. Subs Not Used: Gibson, Bayne.