Clear error/warning of CBN after undo
Merge pull request #1344 from ke-yu/fix_magn2378

Clear error/warning of CBN after undo