Fix %subclass in internal generator