[bug] Extents not restored correctly by undo.