fixed summary.occurrences and several checks