Correcting the structure of table of content so its lays out properly