fixed watch dog snippet