fix a bug in script.sh