fixing the planner