fixed ReadFile