Fix duplicated results for files displayed twice