Fixed bugs in editing person/group