bugfix for when there are no occurrences