Fixed inheritance.
Fixed inheritance.