Corrected type_of to kind_of