fixed some bugs in updatePoI functionality