diff --git a/po/xgettext-html.js b/po/xgettext-html.js
index 39b86de3..3fcaacd4 100755
--- a/po/xgettext-html.js
+++ b/po/xgettext-html.js
@@ -106,7 +106,7 @@ let output = "";
for (let str in strings) {
output += "#:";
- for (location in strings[str]) {
+ for (let location in strings[str]) {
output += " " + location;
}
output += "\n";