fixing dropBranch bug