bug fix: reader crashes when table of content is empty