fix a bug

We will go through the wall if we use wall_height as the height of the
wall.