Made sure grid snapping chooses last correct value