fix event variable for relationwise filtering