fix cert issue