Resolving the parent index issue