fix background color changing on gallery.