fix compiler optim & fix error comm port