repeat state fix