fix bug in namefield index that changed the indices in previously loaded data