Fixed an error in the script.