fixup! Small changes to the segment.io event handler