fix a regression with events removed in the wrong order