fixed file access issue