Fixed duplicate items being added to the collection.