Fix undo messages being hidden