fix device encryption