Crash when online write

@JimWen Did you get a chance to try Martin’s suggestion?