fix update port can not save