Fix open file.