Fixed reading cookie + error dialog (UI)