Things were a little sloppy in the first two periods, but the Habs got it together for the one that mattered most.