Corrected animation repetition count