fixed https errors