fixed an issue with enoent problem