Fix read_data, hopefully for the last time