switch: fix switches with more than 6 ports