Correction in inheritance