Wrong value for foreach.