fixed Seg Tool bug about merging labels from wrong boxes