bugfix: serialize only into correct parent