textgrid: fix a bug, remove old cruft