Fix for gallery.html and gallery2.html