remove bug for end animation