fixed the animation plugin