Fixing PE update when a branch is added