handle case when scrollView is nil