Fix animation.repeat