There was a different sortedList in the code that was defined as follows:
SortedSet<Individual> individualSortedSet = new TreeSet<Individual>();
I didnt see that I have declared it again.. This is the correct declaration:
SortedSet<Individual> individualSortedSet = new TreeSet<Individual>(new FitnessComparator());