fixed Astar issue