Fixes problem with unsecue https connections