Minor upload-related bug fix.