Fixed errors if serial port not in use on startup