product index error fix