diff --git a/src/uncategorized/main.tw b/src/uncategorized/main.tw
index 1aea1d2123ab83123473ecf3ae44a3cbe60f403a..52c15ccc284b428f718acfe7e82a985048ff6412 100644
--- a/src/uncategorized/main.tw
+++ b/src/uncategorized/main.tw
@@ -42,8 +42,10 @@
 <</if>>
 <<if $NaNArray.length > 0>>
 	<br><br>@@.red;ERROR: The following variables are NaN! Please report this.@@<br>
-	<<for _main = 0; _main < $NaNArray.length; _main++>>
+	<<set _main = 0>>
+	<<for _main < $NaNArray.length>> /* Don't change how this loop is setup. It's important for unknown reasons. */
 		$NaNArray[_main] <br>
+		<<set _main++>>
 	<</for>><br>
 <</if>>
 /* end extra sanity checks and repair */