Fixed inheritance errors.