Fix null ref.