Fixing Serial Port connection issues