fixed global.sh