Corrected text record index check.