fix foster parenting with active formatting elements