fixed new index constant issue