Fix bug in attributes.