Fixes to the history undo/redo database...