fix lost wake-up problem