Fixing ancestral classes.