fix serial ports for each devices