Fix batch upload