Fix the file open exception.