fixed pathfinding error related to tolerance