bug fix of unit's uploading