multiple legends conflict fix