fix for teccc_add_legend_css action hook