fix failed to insert data because cannot set pk of AI table