Fix for "bad callback for imp.wakeup: must take 0 parameters"