diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html
index d7b1192..9a95fd5 100755
--- a/app/templates/dashboard.html
+++ b/app/templates/dashboard.html
@@ -187,7 +187,7 @@
"ajax" : url,
"info" : false,
"autoWidth" : false,
- {% if SETTING.get('default_domain_table_size') in ['10','25','50','100'] %}
+ {% if SETTING.get('default_domain_table_size')|string in ['10','25','50','100'] %}
"lengthMenu": [ [10, 25, 50, 100, -1],
[10, 25, 50, 100, "All"]],
{% else %}
diff --git a/app/templates/domain.html b/app/templates/domain.html
index 577afa2..2c6718d 100644
--- a/app/templates/domain.html
+++ b/app/templates/domain.html
@@ -118,7 +118,7 @@
"ordering" : true,
"info" : true,
"autoWidth" : false,
- {% if SETTING.get('default_record_table_size') in ['5','15','20'] %}
+ {% if SETTING.get('default_record_table_size')|string in ['5','15','20'] %}
"lengthMenu": [ [5, 15, 20, -1],
[5, 15, 20, "All"]],
{% else %}
diff --git a/app/templates/template_edit.html b/app/templates/template_edit.html
index 9d61486..5983a34 100644
--- a/app/templates/template_edit.html
+++ b/app/templates/template_edit.html
@@ -104,7 +104,7 @@
"ordering" : true,
"info" : true,
"autoWidth" : false,
- {% if SETTING.get('default_record_table_size') in ['5','15','20'] %}
+ {% if SETTING.get('default_record_table_size')|string in ['5','15','20'] %}
"lengthMenu": [ [5, 15, 20, -1],
[5, 15, 20, "All"]],
{% else %}