fix addOccurences