minore fixes undo movement