fix bombing out when there are no events