fix wakeup reset