fix batch insert bug