fix flip geometry for child elements