Planner Bug fix