[FIX] Fixed pathfind error reporting bug