solved a problem where the _type attribute was not saved for inherited
models.