Fixed reactivation of events after device reboot.