repair bugs in deploy.sh