Fix fdm save and restore for insertmode