Fixed some mistakes preventing a model from being saved