fix attribute reading and precedence