Fix bug when doing multi upload twice