fix the serverPort bug