windows fix for read_data