Correctly set attribute