Disabling undo until I find a way to fix it. Probably the parsing method