Fixed problem with impassable terrain.