goto http://localhost:5000/test/legend_test?filter=legend_test_overlap to see the legend bug
fixed the legend bug, cleaned up master diff