Revert to version with custom event 'stateChange'