fix certificate issue