The Dallas Cowboys’ offense has been the subject of much criticism this season. And apparently, the offense has performed so poorly that it almost cost offensive coordinator Scott Linehan his job.

According to NFL Network’s Ian Rapoport, Dallas Cowboys head coach Jason Garrett considered firing Linehan during the bye week after their loss to the Washington Redskins last month. The team merely decided to fire offensive line coach Paul Alexander and promoted Marc Colombo.

That wasn’t the first time Garrett seriously thought about canning Linehan. He also entertained the possibility of making a change at offensive coordinator before the start of the season before deciding to go “all-in with him.”

However, Linehan has struggled to get the Cowboys offensive playing well consistently this season. The passing game, in particular, has been ineffective as Dak Prescott has not played up to the level he did during his rookie season. The team is just 26th in scoring offense, averaging a mere 19.3 points per game, 27th in total offense, and 29th in passing offense.

In Linehan’s defense, the Cowboys haven’t had much receiving talent to work with this season. But after the acquisition of Amari Cooper, the pressure is now on the offensive coordinator to make things work.

Cowboys owner Jerry Jones has already ruled out the team making any in-season coaching changes, so it appears that Linehan’s job is safe. But if the Cowboys offense continues to struggle like it has and the team once again misses out on the postseason, both he and Garrett could face the ax after the season.