Fixed a bug introduced by my last patch. Now we properly clear out the BatchIDVec