Fixes undo/redo icon initialization.