Fixing inheritance compatibility error