Solve problems about repeat