fix branch.rb