Fix generation of branch PHARs