Correct TEXT attribute reading