fixed planner bugs