error prevention in index