fixed exception when accessing subviews