fix some formatting issues when rendered on slideviewer