fix for view hierarchy