Assigning variables

There were some missing variable assignments in parent and child.