fixed typo in script generation