branch diagram drawn buterror in bname value on browser refresh