Fixed script error