handle the case where we have a zero length global index (unlikely).