BugFix: refresh dataset index before label refresh and set color in label drawing function