fixed bag_merge.sh