Fix bug with https not added to url