fixing duplicate typesystem nodes