fixes legend showing