clean event queue in folding