Fix a regression saving models with altered marking.