Fix error when trying to view comment pages.