Fix ifstream problem.