Fixed multiple peer download and upload bug

Signed-off-by: Hongyi Jia <Hongyi.Jia.GR@dartmouth.edu>