fix parent child relation lookup.