fixed error in write_touchstone off by one