fixed issue 1262, table.insert() empty, thanks Alan