fix the script