fixed astar bug