fixed error when creating nodes with the default type