Maheta Molango came off the bench to hand Oldham victory over Swansea.
With 67 minutes on the clock, Molango found space in the Swansea box to head Simon Charlton's cross into the roof of the visitors' net from six yards.
Swansea's adventure deserved some reward in the match and they should have had a goal from Lee Trundle.
The striker hit the crossbar in the first half and then had a penalty saved after Oldham's Will Haining bundled Thomas Butler over in the area.