Insert a new value into table with a defined table.

Dear All,

I found a strange problem which is about the table.

cardconfig={id=0,cardtype=0,value=0,index=0,status=0,calculation=10,level=0,xPos=0,yPos=0,image=nil}  
  
local testtable={}   
table.insert(testtable,cardconfig)  
table.insert(testtable,cardconfig)  
testtable[1]["index"]=2  
testtable[2]["index"]=15  
print (testtable[1].index .. "/" .. testtable[2].index)  

The output becomes “15/15”. The answer should be “2/15”. Each correspond value which inside the testtable will same as the last changed value. [import]uid: 142351 topic_id: 26466 reply_id: 326466[/import]