Fixed an animation trigger bug