fixed port binding bug