fix an ugly bug with absent http:// in url