edit some bugs in class ScriptEngine.inserted some member of struct init