fix in exclusion filter for generic types