Fixed a bug in attribute exclusion
Performance test