Fixed script creation