it’s not easy for me to demonstrate the problem, but did you saw max will be crazy sometimes at undo operations? I think I found a working solution for that:
callbacks.removeScripts id:#undobugfix
callbacks.addScript #preSceneUndo "disablesceneredraw()" id:#undobugfix
callbacks.addScript #sceneUndo "enablesceneredraw();redrawviews()" id:#undobugfix