fix executeGlobalScriptElements
fix initializeDatamodel