Fix typo in animation logic.