Fix bug in 'get_segment_data_raw()'