Fix a model saving error