fix raw_data validation