bugfixes on the index and get_page_article function