Correcting private inheritance