Fix inheritance error