Fix conditional statement in Animation step