quick fix to handle empty event case #3245