Fixed Planner bugs.