fixing https proxy code