Fixed checking for wall