fix astar bug