Fixed script issue