fixed typo in insert table method