Fix animation counter