fixed a small bug for wall placement