Fix TableInputForm bugs.