fix nested model data not saving