doWriteBatch and riwah
Small fix.