diff --git a/spec.html b/spec.html
index f9cf2f45fa..121379a5cf 100644
--- a/spec.html
+++ b/spec.html
@@ -37295,12 +37295,12 @@
1. Let _unicode_ be _rer_.[[Unicode]].
1. Let _unicodeSets_ be _rer_.[[UnicodeSets]].
1. Let _capturingGroupsCount_ be _rer_.[[CapturingGroupsCount]].
- 1. If _add_ contains *"i"*, set _ignoreCase_ to *true*.
- 1. If _add_ contains *"m"*, set _multiline_ to *true*.
- 1. If _add_ contains *"s"*, set _dotAll_ to *true*.
1. If _remove_ contains *"i"*, set _ignoreCase_ to *false*.
+ 1. Else if _add_ contains *"i"*, set _ignoreCase_ to *true*.
1. If _remove_ contains *"m"*, set _multiline_ to *false*.
+ 1. Else if _add_ contains *"m"*, set _multiline_ to *true*.
1. If _remove_ contains *"s"*, set _dotAll_ to *false*.
+ 1. Else if _add_ contains *"s"*, set _dotAll_ to *true*.
1. Return the RegExp Record { [[IgnoreCase]]: _ignoreCase_, [[Multiline]]: _multiline_, [[DotAll]]: _dotAll_, [[Unicode]]: _unicode_, [[UnicodeSets]]: _unicodeSets_, [[CapturingGroupsCount]]: _capturingGroupsCount_ }.