fix some segfaults in AStarContainer