diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc
index fd37f6e93b..19633a3019 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc
@@ -196,7 +196,7 @@
[% ELSE %]
[% END # /ms_se %]
- [% IF ( numbersphr ) %]
+ [% IF ( Koha.Preference('OPACNumbersPreferPhrase') ) %]
[% IF ( ms_callnum ) %]
[% ELSE %]
@@ -208,7 +208,7 @@
[% ELSE %]
[% END # /ms_callnum %]
- [% END # /numbersphr %]
+ [% END # /IF OPACNumbersPreferPhrase %]
[% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]