Line break counting fix