diff --git a/spec.bs b/spec.bs
index 2ac693a..07b0a6d 100644
--- a/spec.bs
+++ b/spec.bs
@@ -595,7 +595,7 @@ A component is a [=struct=] with the following [=struct/items=]:
1. Set |result|["{{URLPatternComponentResult/input}}"] to |input|.
1. Let |groups| be a [=record=]<{{USVString}}, ({{USVString}} or {{undefined}})>.
1. Let |index| be 1.
- 1. While |index| is less than [$Get$](|execResult|, "`length`"):
+ 1. While |index| is less than or equal to |component|'s [=component/group name list=]'s [=list/size=]:
1. Let |name| be |component|'s [=component/group name list=][|index| − 1].
1. Let |value| be [$Get$](|execResult|, [$ToString$](|index|)).
1. Set |groups|[|name|] to |value|.