Fixed a bunch of errors on the gallery page.