Potential fix

TreeSet is searching for the Event in a red-black tree, but the
object has mutated, and so it's possible the comparator will lead
the search down the wrong path.