fix the port problem