fixed trash-undo error