Correct attribute setting