diff --git a/xtrn/lord2/lord2.js b/xtrn/lord2/lord2.js
index 57a34b0f7957875416d9e194d304270abfe935a1..235363121f3bff25cafbfae4e2624f3f39de2953 100644
--- a/xtrn/lord2/lord2.js
+++ b/xtrn/lord2/lord2.js
@@ -373,7 +373,7 @@ function run_ref(sec, fname)
 		},
 		'readchar':function(args) {
 			// TODO: It's possible to "abort" input and get a zero-length string.
-			setvar(arg[0], getkey());
+			setvar(args[0], getkey());
 		},
 		'readnum':function(args) {
 			var x = scr.pos.x;