fix the legend positions