Fixed a bug introduced in PR 134, that made all indexing appear as failed

This should fix the bug I introduced in PR 134.