Fixed bug in IRI resolver