fix repeat setting problem