fix minor upload bug