fixing planner model