Correctly set attributes