Fix a bug of color animation.