Fix batch method

This should fix the issue where batch curl requests were not working. cc @dsposito