Fixed get_parties to call parties with name and not id