Bills lost to Miami at home. After going 0–4, the Bills released Trent Edwards and named Ryan Fitzpatrick starting quarterback. Despite some close games, they ended up at an 0–8 record before beating Detroit at home in Week 10. Then came a 49–31 win in Cincinnati and an OT loss to Pittsburgh. The team finished 2010 with a 4–12 record. As a result of the Bills' poor play in 2010, the team earned the third overall selection in the 2011 NFL Draft, using it to select defensive tackle Marcell Dareus in an effort to improve the team's long-struggling run defense. The Bills fired Tom Modrak, one of the last connections to the Donahoe era, shortly after the 2011 draft. Buffalo had an excellent start to 2011, routing Kansas City 41–7. The following week, they hosted Oakland and erased a 21–3 deficit, winning 38–35. In week 3, the Bills hosted the Patriots; they erased a 21-0 Patriots lead and led 31–24 in the fourth; a late Tom Brady touchdown tied the game, but the Bills whipped into range of a last second field goal. The 34–31 win ended a 15-game franchise losing streak spanning 8 years to the Patriots. Despite starting the 2011 season with a 5–2 record, leading the AFC East for several weeks, a wave of injuries to several key starters led to the Bills compiling a 7-game losing streak, pushing the team out of playoff contention for the twelfth straight year. The losing streak was finally broken with a defeat of the Tim Tebow-led Denver Broncos on Christmas Eve, in a game that had unusually poor attendance. With the Detroit Lions making the playoffs for the first time since 1999 that same season, the Bills held the longest postseason drought in the NFL. On March 15, 2012, defensive end and former first-overall pick Mario Williams, formerly of the Houston Texans, signed a six-year contract with the Bills worth up to $100 million ($49.5 million guaranteed), which made it the most lucrative contract for a defensive player in NFL history at the time. Unfortunately, it was not enough to prevent another disappointing season in 2012 in which the Bills finished 6–10 again. Following the season, the Bills relieved Chan Gailey and his entire coaching staff of their duties. While Gailey reinvigorated the Bills offense, his teams were undone by poor defensive play, in contrast to bad offense but decent