Oldham boss Lee Johnson bemoaned his side's luck and insisted Brentford's winner in his side's 2-1 defeat should have been ruled out.
New Brentford boss Mark Warburton, who replaced Uwe Rosler in the Griffin Park hotseat, had to wait until the 90th minute to see his side break the deadlock in a hard-fought clash when midfielder Jonathan Douglas rose highest at the far post to power home Sam Saunders' cross.
It was a win that didn't look on the cards as both sides failed to create many clear-cut chances in a game dominated by two congested midfields.
Johnson said: "In the second half I though we were excellent. We were strong on the break and solid, but maybe lacked a quality final ball.
"I thought the goal was a foul because the lad has come right over the top of our defender, but we should have cut the cross out in the first place."
Johnson was critical of the referee for failing to send the Bees goalscorer off for a professional foul just minutes before he broke the deadlock.
"We were in on goal and he was the last man so he should have gone, but we're not getting those kind of decisions at the moment," he said.
"I thought we were unlucky not to come away with one or three points, but the outcome shouldn't hide the fact that this was a fantastic performance - a fact our fans agreed with judging by the way they applauded the lads at the end."
The hosts' Will Grigg had the best chance of an even first half when he clipped Jake Bidwell's cross just wide, before Oldham danger man Mike Petrasso screwed an effort just past the far post before the break.
Saunders goal-bound effort on the hour mark was cleared off the line by Genseric Kusunga as the game went from end to end in the dying minutes.
Oldham left back Ellis Plummer survived a clear cut penalty shout when he sent Clayton Donaldson sprawling in the box with minutes to go.
At the other end Douglas also escaped with a yellow for a foul on the edge of the box as Oldham's Petrasso broke.
Oldham pinned the Bees back for spells, with both James Tarkowski and the impressive Korey Smith having efforts blocked in the box.
But Douglas had the last laugh and lifted Brentford into third place as the rest of the League One promotion pack dropped points.