fix sleeping