fix bug in bcs uploader