Avoid changing the visible range of entries unless necessary.
Reset viewDataIndices when setting the working directory.