bugfix: serialize fragment state