fix the bug of https