diff --git a/views/wizard_subtitles.tpl b/views/wizard_subtitles.tpl
index 4b3a04178..cb8dff36a 100644
--- a/views/wizard_subtitles.tpl
+++ b/views/wizard_subtitles.tpl
@@ -105,9 +105,9 @@
%enabled_languages = []
%for language in settings_languages:
-
- %if language.enabled == True:
- % enabled_languages.append(str(language.code2))
+
+ %if language['enabled'] == True:
+ % enabled_languages.append(str(language['code2']))
%end
%end