Fix watchdog reset issue