fix line drawing