fix a bug in get_raw_data