fix another crash in printing, due to indexing stale indexToBlock