diff --git a/hook.php b/hook.php
index 3ecb3780..d55222fd 100644
--- a/hook.php
+++ b/hook.php
@@ -377,7 +377,7 @@ function plugin_fields_addWhere($link, $nott, $itemtype, $ID, $val, $searchtype)
$link .= ' NOT ';
}
- return $link . 'CAST(' . $DB->quoteName($table . '_' . $field) . '.' . $DB->quoteName($field) . ' AS DECIMAL(10,7))' . $operator . ' ' . $DB->quoteValue($val) ;
+ return $link . ' CAST(' . $DB->quoteName($table . '_' . $field) . '.' . $DB->quoteName($field) . ' AS DECIMAL(10,7))' . $operator . ' ' . $DB->quoteValue($val);
} else {
// if 'number' field with name is found with <= or >= or < or > search
// update WHERE clause with the correct operator
diff --git a/templates/question_type_administration.html.twig b/templates/question_type_administration.html.twig
index 576fcc92..47ceaf16 100644
--- a/templates/question_type_administration.html.twig
+++ b/templates/question_type_administration.html.twig
@@ -77,7 +77,7 @@
{% if not is_ajax_reload %}
{% else %}