Fix server detection.