ts_read bug fixed again!