correct the type detecting order forgetNodeTypeName