Fixing occurrenceID not being set properly