Fixing legend positioning.