- fix read_raw_segment bug which was introduced with the SparseMatrix as reference input