fixed bug in get_publications_and_first_last()