fix updateBranch