Fix missing event variable introduced by 3c9f17405.