Match ends, St. Mirren 1, Raith Rovers 2.
Grant Anderson touched home Jon Daly's header for a Raith Rovers victory that leaves St Mirren searching for their first Championship home win this term.
The Buddies had been very sluggish for almost all of the first half and were lucky to be level at half-time after Lawrence Shankland had cancelled out James Craigen's 12th-minute opener.
Shankland and Calum Gallagher came close to scoring St Mirren's second.
However, Anderson got the merest touch to Daly's header to stun the Saints.
The Raith midfielder had ghosted through their static defence and claimed to have got the final touch on the six-yard line.

While that remains debateable, there was no doubt he did enough to distract St Mirren goalkeeper Jamie Langfield and help Rovers to their first away points of the season and third place in the table behind Rangers and Falkirk.
For almost all of the first half St Mirren looked as if they were still stunned by losing 3-2 to Falkirk last week despite holding a two-goal lead.
Their creative players seemed to be lacking in confidence and there were precious few attacks.
Craigen's opening goal for Rovers hardly came as a surprise. St Mirren failed to clear their lines and gave the Raith midfielder too much time and space to clip in a lovely goal from 18 yards.

And it could have been worse for St Mirren when twice Raith's captain Jason Thomson crossed for Daly who just could not connect properly, once with his head, once with his boot, both at the back post.
In a rare St Mirren attack, Keith Watson moved forward from defence to sweep in the perfect cross from the right for Shankland whose header was saved by Kevin Cuthbert.
And as the home team came to life, on the stroke of half-time the same duo combined, with Shankland slipping home a low shot from a narrow angle from his team-mate's clever pass.
Raith had lost their previous three Championship games away from home, all against the league's stronger sides - Falkirk, Hibs and Rangers.
And when St Mirren played the second half with renewed spirit it looked like the Fifers would have to wait longer for a win or even a point.

Shankland had two shots diverted from the target before a third effort was clawed away by Cuthbert.
Cameron Howieson's left-foot curling shot drifted past Cuthbert's far post and somehow Lewis Toshney managed to deny Gallagher at the back post as he tried to convert Watson's low cross.
However, Rovers hit with a classic sucker punch when Daly nodded Rory McKeown's throw-in past Langfield, via Anderson's toe, in the 87th minute.
Line-ups
St Mirren
Formation 4-4-2
- 12Langfield
- 20Watson
- 15Baird
- 4Webster
- 3Kelly
- 10Carswell
- 14Mallan
- 6GoodwinBooked at 83mins
- 11Howieson
- 22GallagherSubstituted forMorganat 82'minutes
- 25Shankland
Substitutes
- 1Ridgers
- 5Conlan
- 16Agnew
- 17Morgan
- 19Cuddihy
- 21McGrath
- 33Stewart
Raith Rovers
Formation 4-4-2
- 1Cuthbert
- 2ThomsonBooked at 73mins
- 6Benedictus
- 5Toshney
- 23McKeown
- 7Anderson
- 8McCordSubstituted forWightonat 81'minutes
- 14DavidsonSubstituted forMatthewsat 24'minutes
- 28Craigen
- 9Stewart
- 16Daly
Substitutes
- 3Petrie
- 11Megginson
- 12Matthews
- 17Laidlaw
- 18Wighton
- 24Ellis
- 25Ford
- Referee:
- Euan Anderson
- Attendance:
- 2,877
Match Stats
- Possession
- Home51%
- Away49%
- Shots
- Home13
- Away11
- Shots on Target
- Home6
- Away6
- Corners
- Home9
- Away5
- Fouls
- Home14
- Away13
Live Text
Post update
Full Time
Second Half ends, St. Mirren 1, Raith Rovers 2.
Post update
Jason Thomson (Raith Rovers) wins a free kick on the left wing.
Post update
Foul by Cameron Howieson (St. Mirren).
Post update
Attempt saved. Stephen Mallan (St. Mirren) right footed shot from outside the box is saved in the bottom left corner.
Post update
Foul by Jon Daly (Raith Rovers).
Post update
Andy Webster (St. Mirren) wins a free kick in the attacking half.
Goal!
Goal! St. Mirren 1, Raith Rovers 2. Grant Anderson (Raith Rovers) right footed shot from very close range to the bottom right corner. Assisted by Jon Daly.
Post update
Attempt missed. Stuart Carswell (St. Mirren) right footed shot from outside the box is close, but misses to the left.
Post update
Attempt missed. Craig Wighton (Raith Rovers) header from the centre of the box is close, but misses to the left following a set piece situation.
Booking
Jim Goodwin (St. Mirren) is shown the yellow card for a bad foul.
Post update
Grant Anderson (Raith Rovers) wins a free kick in the defensive half.
Post update
Foul by Jim Goodwin (St. Mirren).
Substitution
Substitution, St. Mirren. Lewis Morgan replaces Calum Gallagher.
Substitution
Substitution, Raith Rovers. Craig Wighton replaces Ryan McCord.
Post update
Attempt missed. James Craigen (Raith Rovers) right footed shot from outside the box is just a bit too high from a direct free kick.
Post update
Jon Daly (Raith Rovers) wins a free kick in the defensive half.
Post update
Foul by Andy Webster (St. Mirren).
Post update
Foul by Kyle Benedictus (Raith Rovers).
Post update
Cameron Howieson (St. Mirren) wins a free kick in the defensive half.