fixed something in planner.py