fix for legend wrapping issue