fix create new script bug