Fixed class inheritance.