Fix for duplicate collection elements