removed crashing if standing on a wall