fix bug in animation fading