fixed upload errors