Fix bug in batch people retrieval