fix another variation of crash on wakeup