fix change index issue