Bug when adding large numbers of pairs to the structure.