Fix legend background for inset - #326