fix unguarded wall bug