Undo&Redo fix for uploaded file