Fix arraybound error in getPeople