fix `inherits`