Fix list_branches.