Changed nb_rows count when new column is needed. Fixes overlapping legend boxes.