Fixed the error in the script