event preprocessor bugfix