fix animation behavior.