fixed a problem for watchdog