Batch transaction is finally working