fix branch identification