fix mixed content issues