fix inhertance