The coordinates for snapping are now passed correctly