fixed upload data bugs