fix line drawing, the second point was ignored before