fix a bug about event filter