fixing TTScript::RunFlattened method