Fix null check.