use util.tinsert instead of table.insert
Merge pull request #51 from mpeterv/fixing_#50

use util.tinsert instead of table.insert