fix uri returning issue