fix branch dependence