Mode changing loses serial connection?