Fixed wakeup happening at wrong time.