Fix the error in the script