fix data record with id=0 can be inserted for js