fixed an error in the script