Fixed leftovers from old upload code.