Fixes #1060. Deindexing error entries gives the wrong entry because the ...

...logical index computation doesn't multiply by the partition size (1000). Fixes #1060