fixed bug concerning walls