Fix null reference.