Fixed issue that caused showing duplicates of documents in listing