fix length of the legend, but still have to fix the position