fixed inheritance_column to use "type" column.