fixes upload dialog