Fix classes with inherit lists