Fixes to gallery and other pages.