fix repeat task functional