added null check on scroll of child