fix faulty inheritance