Fixes for broken gallery and paging for comments.