Fix processing of multiple inheritence levels