make sure legends only show once