fixed bug retrieving index status.