fixed bad IRI bug (issue #2)