compensate for bad terminal input.