fixed decrypt when app is in background