Fixed issue with parent index