Adjust so that legend is not shown twice