SM snaps 8-game losing streak