fixed indx1 missing error