small fix in link_to_branch helper