fix minor bug in get_pacs