diff --git a/emhttp/plugins/dynamix/nchan/device_list b/emhttp/plugins/dynamix/nchan/device_list
index dbc5732a6..d290b8a56 100755
--- a/emhttp/plugins/dynamix/nchan/device_list
+++ b/emhttp/plugins/dynamix/nchan/device_list
@@ -461,7 +461,7 @@ while (true) {
$echo[$n] .= "
| "._('Slots')." | ".cache_slots($off,$pool,_var($cache[$pool],'devicesSb'),_var($cache[$pool],'slots',0))." | |
";
$zfsPool = strstr(_var($cache[$pool],'fsType'),'zfs') && !isSubpool($pool);
if ($zfsPool) {
- $current_subpools = array_filter($pools, function ($element) {
+ $current_subpools = array_filter($pools, function ($element) use ($pool) {
return strpos($element, "$pool~")!==false;
});
if (count($current_subpools) < count($subpools)) {