fix incorrect line positioning