Fixed bug with invalid-attribute-name errors.