Fixed a logic error in BranchHistory