Bug fix: dictionary no longer returns duplicates