Fix generate script type string --> script