fixed undo for AMSettings, fixed undo for deleting take.