Fixed script errors.