fix lable index issue