$ 0 0 I think I fixed it. The reason is that line of code is only usable when any COM port is connected and is new.