Fix script.sh bug