animation end class fix