quick fix for legend box