correct error in attr()