fixed batch commit bug