fix wordOccurrences