fix minor bug with wallX = 0 being false