correction astar bug