Fix null pointer.