diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc
index d30a47a75a..8bfff8cc20 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc
@@ -59,7 +59,7 @@
[% SET number_of_public_shelves = number_of_public_shelves + 1 %]
[% IF number_of_public_shelves >= 10 %][% LAST %][% END %]
[% END %]
- [% IF some_public_shelves > 10 %]
+ [% IF some_public_shelves.count > 10 %]
[% END %]
[% END %]
@@ -76,7 +76,7 @@
[% SET number_of_private_shelves = number_of_private_shelves + 1 %]
[% IF number_of_private_shelves >= 10 %][% LAST %][% END %]
[% END %]
- [% IF some_private_shelves > 10 %]
+ [% IF some_private_shelves.count > 10 %]
[% END %]
[% ELSE %]