Fix calculation of conflicting occurrences