Fix missing parent assignment