Fix Panic in ttywakeup