fix clone for urls ending in '/'