fix uploader conditional