Fixed repeats bug