fix windows service port bug