fix a bug on AttributeExclude