fix http vs. https problems