Fix for pathfinding delay