fixed wakeup function