merge_tools.sh bug fixed