Bugfix inside get_page_headers.