fix error when use remote uri