Fixed bug in query preventing import of attributes.