Fixed relationship between parent and child bug