correcting the script