fix to the script error