Fixes wakeup