Fix the open file error.