Fix output of getBranches