Fixed legend overlap on small screen.