inheritance view discriminator cloning bugfix