The Buffalo Sabres haven’t had much to celebrate. When they finally earned the chance, they forgot how.

At the close of a chaotic 5-4 shootout win over Montreal on Thursday, the Sabres’ victory party was in disarray. A few players jubilantly hopped into the dressing room. Others exchanged high-fives in the hallway. A handful remained on the ice soaking in the applause of the faithful.

Captain Jason Pominville finally managed to get them on the same page. In various stages of dress, from full uniform to lower pads only, the Sabres skated back to center ice and raised their sticks to the fans.

It was a welcome moment for both sides.

The Sabres avoided their fourth straight loss with a last-second goal by Thomas Vanek, then earned their second victory in nine games when Vanek and Pominville scored in the shootout. The Sabres also snapped a three-game winless skid in First Niagara Center. It was cause for celebration, no matter how awkward.

“I just think we forgot about it because we hadn’t won at home for a while,” said goaltender Ryan Miller, who stopped two of three Montreal attempts in the shootout. “It was a little bit clunky, like the game, but eventually we all got out there.”

There was little reason to believe they would win. The boos were raining down on the Sabres harder than they had all season. The team was seconds away from seeing another loss added to their 1-6-1 slide.