fix flitering of duplicates