fix lost wakeup bug