diff --git a/hardware_components/abstract_hardware_components.py b/hardware_components/abstract_hardware_components.py
index 7ed2d85376324776b765b4d494215dbc0116c5d1..c8ca0b3712bce2767423b726452c2a2e6c8727df 100644
--- a/hardware_components/abstract_hardware_components.py
+++ b/hardware_components/abstract_hardware_components.py
@@ -113,7 +113,7 @@ class MuxAbstract(ABC):
         self.reset()
 
         for role in elec_dict.keys():
-            for elec in elec_dict['role']:
+            for elec in elec_dict[role]:
                 self.switch_one(elec, role, 'on')
                 self.exec_logger.debug(f'electrode: {elec} activated.')
                 time.sleep(activation_time)
diff --git a/hardware_components/mux_2024_rev_0_0.py b/hardware_components/mux_2024_rev_0_0.py
index ed2674f600ca04165b40335188aa2cbe49f8d653..6818f03a0bfc61bcc4520aba63b025c1743b2cda 100644
--- a/hardware_components/mux_2024_rev_0_0.py
+++ b/hardware_components/mux_2024_rev_0_0.py
@@ -111,7 +111,7 @@ class Mux(MuxAbstract):
 
     def reset(self):
         self._mcp[0] = MCP23017(self._tca, address=int(self._mcp_addresses[0], 16))
-        self._mcp[1] = MCP23017(self._tca, address=int(self._mcp_addresses[0], 16))
+        self._mcp[1] = MCP23017(self._tca, address=int(self._mcp_addresses[1], 16))
 
     def switch_one(self, elec=None, role=None, state=None):
         MuxAbstract.switch_one(self, elec=elec, role=role, state=state)
diff --git a/test_mux_2024.py b/test_mux_2024.py
index e9b2e1828180ff573237be783a2c502ab78a8378..92185fc71be16b0e572dfbb85ad7af8ade15356a 100644
--- a/test_mux_2024.py
+++ b/test_mux_2024.py
@@ -13,5 +13,5 @@ mux.switch({'A': [1], 'B': [4], 'M': [2], 'N': [3]}, state='on')
 time.sleep(8)
 #mux.switch({'A': [1], 'B': [4], 'M': [2], 'N': [3]}, state='off')
 mux.reset()
-# mux.test({'A': [1, 2, 3, 4], 'B': [4, 5, 6, 7], 'M': [2, 3, 4, 5], 'N': [3, 4, 5, 6]})
+mux.test({'A': [1, 2, 3, 4], 'B': [4, 5, 6, 7], 'M': [2, 3, 4, 5], 'N': [3, 4, 5, 6]})
 change_config('config_default.py', verbose=False)