Fixed TableInputForm bugs.