fix url output handling