Fix for https protocol