Fix issue with file access