fixed astar (maybe)