fix "empty url problem" in parse_params function