fix animation issue