astar bug fix