fixed tile snapping bug