upload assert bugfix