fixing watchdog error