fixed poiID loop