only keep a short undo history