undo items work with replace