fixed http/https error