You should make a check which verifies that this index really exists.