Fixed minor bugs regarding displaying chapters.