Fix defect when no server given.