Fixed inheritance problem.