Fixed the upload download bugs