Fix the planner bug.