Fixed problem with indexing deprecated records.