Fixed the duplicate filter (#1215)