fixed a but in the parse-url method