upload bug fix.