fix to ensure that the person data is saved correctly