Fixed snapping crash