Fix legends for shapes