check_index sanity