fix error with attributes