update trigger of reset.
isAvailableKey -> isAvailableEvent
update trigger of prepareLeap