Fix a file access issue