fix line main bug