Legend column computation bug fix