fix inheritance error