Bugfix on line drawing.