fix compilation error with event filtering