fix for bug with lid initiated sleep