fixed bugs for parallel upload