Fix get data file endpoint