fix bug in urn.bare(urn) util func