Fix deep sleep