Make sure index is validated.