The variable `$zone` is not defined. It tooks the last `$zone` value from the `foreach`.