fixed undo in bars