fix bug where sometimes impossible to upload to azure search