Fixing bug where Global Scripts were not working and causing all scripts
to crash.