fix inits/undohist