Update type_filter.cpp