Fixed labeling index error