fix get_legend_url not getting called