fix mismatched classes.