Fixed error in loading block index