fix saving with generated parent fields