Bug, function "Smart_wakeup"