Correction bug pathFinding