Fix updating of branches.