Fixing spacing issue for legend