main: fix uploader bug