Revert "fix Astar"

This reverts commit 6e312d8e61fcabe00752b8af5e01a017a26af399.