attempt to fix bug reported issue #199
Merge pull request #200 from jrjohansson/fix-td-array-wrap

attempt to fix bug reported issue #199