error in the logic to get real branches, master should be included