fix wall snapping bug