fixed pause to run events after state change