fix issues with instances hosted on https