Undo now works better after a feature panel closes.