Fixed bug in changing attr with URIs