Fixed snapping issue

Snapping issue was just a misplaced variable