fix for package_list returning nested list