Fixed a new line problem in listBranches