Francois Beauchemin scored a go-ahead goal with 31.7 seconds left in the third period to lift the Colorado Avalanche to a 2-1 victory over the Buffalo Sabres on Wednesday night.

Alex Tanguay had a goal and an assist and Semyon Varlamov had 27 saves for Colorado. Beauchemin also had an assist.

The Avalanche, who scored twice in the third, went ahead when Beauchemin's shot from the point went off Sabres defenseman Mark Pysyk and beat goalie Robin Lehner high for his sixth of the season.

The Sabres pulled Lehner for an extra attacker but didn't get a shot on goal.

Buffalo's loss spoiled the return of Ryan O'Reilly, who played six season in Colorado and was facing his former team for the first time since being traded in the offseason.

O'Reilly had an assist, Evander Kane scored and Lehner finished with 33 saves for Buffalo.