fix some uploading weirdness