fix missing legend bug in plot_lc()