Fixed issue #4.

Reason: The pathfinder's internal representation of the world was not up-to-date.