Add merging of tasks in recipe after assign parent.
Fixed assign_parent.