fixed legend-in-zoom bug