ts_read fixed a bug