Fixed creation of nodes within Boxes.

Previously they were added below the root of the script rather than inside the box.