fix some bug about wakeup()