Fixed the Table.insert method