Ten-man Dundee secured a last-gasp victory at Raith Rovers to end their winless run of five games.
The visitors lost midfielder Stephen O'Donnell inside the opening half-hour for two bookable offences.
With Rovers failing to test the depleted visitors, Dundee were content to look for opportunities to grab a goal on the break in the second half.
And they took their only chance when Nicholas Riley fired home from the edge of the box with only five minutes left.
Raith: McGurn, Donaldson, Murray, Hill, Ellis, Williamson (Reynolds 76), Walker, Thomson (Scott McBride 66), Hamill, Baird, Brian Graham. Subs Not Used: Laidlaw, Colin Wilson, Dyer.
Dundee: Douglas, Benedictis, McKeown, McGregor, Lockwood (Chisholm 46), Riley, O'Donnell, Irvine, Conroy (McCluskey 31), Bayne, Milne. Subs Not Used: Gibson, Hyde, Mcintosh.
Sent Off: O'Donnell (28). Booked: O'Donnell, Bayne.
Goals: Riley 86.
Ref: Crawford Allan