Fixed bug in painting of the current time line