fix ssl error after packaged