fixed a bug in the bugBranch