fix uri space bug