First fix. Bad foreach.