fixed legend spacing issue