Solved RepPlan problem