Fix server may undefined...