getURI bug fix by @dreamsxin