Fix read_cols() in matrix