Fix text cut off in legend