Fixes undefined offset error in people profiles