Fix a bug that was preventing a new model to be saved.