Fixed uploading bug