fixed not waking up from sleep