fix animation problem