fix some bugs in Person controller