Fixed retain cycles in animation classes