script_v7.sh bug fixed