Fixed some bugs in list_types_view