fixed small uploading bug