Fix the adHoc planner problem