Yes, I think that's something you shouldn't do. I don't know what you are doing but probably you can do it outside an event filter.