Fixed endless recursion issue in getAllViews()