batch commit bug fix