Fixed bug where the list was showing duplicates that were not in the list