fix inherit