Fixed bug related to the legend of time line.