#533 fix duplicated results on query filter