Fix flickering on filter gallery.