fix syntax in _finishUploading