fix a bug of textbox Port