fixing chapterversereference output when spanning chapters