Remove unnecessary event flushing.