fixed some problems in person js