fix branch support