fix the script build