fixed video repeat generation