Fix null contact error.