fixed bugs in deviceStartComm