Fixed error in the redraw lines.