diff --git a/modules/thejit_spacetree/thejit_spacetree.module b/modules/thejit_spacetree/thejit_spacetree.module
index 9e163e4..1ebfb87 100755
--- a/modules/thejit_spacetree/thejit_spacetree.module
+++ b/modules/thejit_spacetree/thejit_spacetree.module
@@ -401,9 +401,9 @@ function thejit_spacetree_graph_to_tree($graph, $config = array()) {
     }
   }
   $tree = new stdClass;
-  $tree->id = $root;
+  $tree->id = (string) $root;
   // the ID within the graph
-  $tree->graphID = $root;
+  $tree->graphID = (string) $root;
   $tree->name = $graph[$root]['data']['title'];
   $tree->data = new stdClass;
   $tree->children = array();
