fix sleeping folder deletion