Fixed an issue that fed the results array with duplicates