Walking bug fix

Fixed a bug which caused an infinite loop while trying to walk over a
particular convex polygon.