Fixed the A* error