fix uri checking