Change when parentIndex is added to annotations.