lineCounter fixed