astar_search doesn't throw error but doesn't work correctly either