Trim undo fixed