Wall snapping correction