Fixed offset issue for line drawing.