Fix Task AttachedToParent behavior. Fix bug #2777 part1.