Fix snap to grid