fixed OccurencesTimes bug