* fixed bug for legend data updating