fixes legend font issue