Issue #22. Correct location of thead/tbody add.