Correction for crash when creating nodes from the root