fix Animation bug