fix upload file dialog