fix serial ports scanning