Correct issue with wrong widget state.
Revert global event handlers.