Fixed get_branches function.