fix bug in createPerson