Kevin O'Connor scored two penalties - including one three minutes into stoppage time - as Brentford recovered from the concession of a bizarre early goal to beat Southend United 2-1.
O'Connor trebled his season's goal tally in the space of 25 second half minutes to give The Bees the points after they had fallen behind early on.
The visitors goal came completely out of the blue when a long Simon Francis free kick looped towards the Brentford goal, Nikki Bull caught the hopeful punt but took a couple of steps back and the assistant referee signalled the ball had crossed the line.
The goal was credited to right back Francis but it may eventually be given as an own goal by the Brentford keeper.
Apart from an early shot from Jean-François Christophe, that flew straight at Bull, the goal was the only time Southend troubled The Bees in the first half.
The hosts had the upper hand in terms of possession in the first period but failed to turn it into good goalscoring chances.
Myles Weston came closest to a first half leveller when his low shot was pushed out by Steve Mildenhall after a melee inside the penalty area.
O'Connor curled a free kick over the top, Sam Wood had a shot blocked by Francis and Charlie MacDonald had a header saved low but it truth it was a game lacking in excitement and quality.
In the second period, particularly after Brentford equalised, it was a much better spectacle and it was no surprise that a winner came.
MacDonald had a shot early in the half which dribbled wide and James Wilson headed over from a corner soon after while Bull smothered smartly at the other end when a Francis free kick dropped loose.
Lee Barnard fired over from 12 yards for the hosts before Brentford won their first spot kick as the game entered its final quarter.
Weston was the man who won it as he exchanged passes with Wood and darted into the box, he went down under the challenge of Osei Sankofa and a penalty was awarded.
O'Connor lashed it hard and low to Mildenhall's left to level it up.
MacDonald had a shot blocked by Adam Barrett as the game sprung to life and the Bees striker set up Weston for a shooting opportunity that he took early and Mildenhall saved low.
Franck Moussa fired over at the other end after good work from substitute Francis Laurent and Bull saved low from the new man soon after.
Weston looked set to race clear and win the game for Brentford when he latched onto a Sam Saunders pass but Francis made a brilliant recovery tackle and Saunders fired a volley wide in the dying seconds.
Just when it seemed the game would end level a Saunders cross dropped loose in the box and Marcus Bean latched onto it, he went down under the challenge of Moussa and another spot kick was awarded.
O'Connor stepped up again and lashed it down the middle past the dive of Mildenhall to seal the game and end a seven-match win-less run.
Brentford: Bull; Wilson, Bennett, Phillips, Foster; Saunders, Bean, O'Connor, Wood (sub Kabba 84 mins); MacDonald, Weston
Subs (not used): Price, Ferrell, Blake, Legge, Osborne, Taylor
Bookings: Phillips (36 mins), Bean (75 mins) (third of season)
Southend United: Mildenhall; Francis, Sankofa, Barrett, Friend; Grant, McCormack, Christophe (sub Sawyer 90 mins), Moussa; Barnard (sub Freedman 74 mins), O'Donovan (sub Laurent 73 mins)
Subs (not used): Herd, O'Keefe, Joyce
Bookings: Barnard (27 mins), Grant (32 mins), Moussa (77 mins), Francis (89 mins)
Attendance: 4,832 (746 away fans)
By Chris Wickham