fixed some bugs with wall spawning