fix missing index error