try to fix astar bug when click quickly