fixed bug with animation playback