Fixed "openPort()" invocations in considering of last changes