astar bug fixed