fixed planner bug