diff --git a/index.bs b/index.bs
index f3c71e8a..b2562975 100644
--- a/index.bs
+++ b/index.bs
@@ -8292,16 +8292,20 @@ The [=remote end steps=] given |session| and |command parameters| are:
1. Let |arguments| be the arguments
field of |command
parameters| if present, or an empty [=/list=] otherwise.
-1. Let the |contexts| be the value of the contexts
field of |command parameters| if it is present or null if it isn’t.
+1. Let |contexts| be null.
-1. If |contexts| is not null:
+1. If the contexts
field of |command parameters| is present:
- 1. For each |context id| of |contexts|:
+ 1. Set |contexts| to an empty [=/set=].
+
+ 1. For each |context id| of |command parameters|["contexts
"]
1. Let |context| be the result of [=trying=] to [=get a browsing context=] with |context id|.
1. If |context| is not a [=top-level browsing context=], return [=error=] with [=error code=] [=invalid argument=].
+ 1. Append |context| to |contexts|.
+
1. Let |sandbox| be the value of the "sandbox
" field in |command
parameters|, if present, or null otherwise.