Fixed a bug inside the file iterator when check the file is equal to environment configuration.