minor bug fix for batch sending in historical endpoint