Fixed a crash with the ImmutableNodeFactory