fix the port error