fix for urls with https