fixed crash that could occur when a nested object referred to its parent object