fix branch dependencies