diff --git a/arts/script.js b/arts/script.js
index d46aac891..45b8e9ba4 100644
--- a/arts/script.js
+++ b/arts/script.js
@@ -327,7 +327,7 @@ function displayTree(treeData) {
dispText = d.data.name;
if (d.data.type === 'runtime') {
dispText = 'Runtime: ' + dispText + '
' + 'uuid:' +
- d.data.uuid + '
' + 'nmodules:' + d.data.nmodules + '
';
+ d.data.uuid + '
' + 'nmodules:' + d.data.children.length + '
';
} else if (d.data.type === 'module') {
dispText = 'Runtime: ' + dispText + '
' + 'uuid:' +
d.data.uuid + '
' + 'filename:' + d.data.filename + '
';