Fixed issue with https