fixed global script.