Fix bug for ENOENT