Fixed planner bug