Fixing quit eventfilter