Fixed creating infinite instances of a model.