Fix incorrect URI crash