fix branch build with build.all