fix port config error