Fixed issue with obtaining proper index/parent/rowCounts in the case of root layers