bug fix for flip animation.